projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5013d1
)
xenoprofile: Disable IBS on x86_32
author
Keir Fraser
<keir.fraser@citrix.com>
Fri, 6 Aug 2010 14:42:49 +0000
(15:42 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Fri, 6 Aug 2010 14:42:49 +0000
(15:42 +0100)
Extended PCI configuration space is not accessible on 32 bit
systems. This patch disables IBS feature on 32 bit to avoid
IBSCTL(0x1cc) accesses.
Signed-off-by: Wei Wang <wei.wang2@amd.com>
xen/arch/x86/oprofile/op_model_athlon.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/oprofile/op_model_athlon.c
b/xen/arch/x86/oprofile/op_model_athlon.c
index d1158499306ac8ca4ea0a733bb92d69349983f34..8d83b01e3194c9bd03876e613ca8ab968a50ac20 100644
(file)
--- a/
xen/arch/x86/oprofile/op_model_athlon.c
+++ b/
xen/arch/x86/oprofile/op_model_athlon.c
@@
-475,6
+475,9
@@
static int init_ibs_nmi(void)
static u32 get_ibs_caps(void)
{
+#ifdef CONFIG_X86_32
+ return 0;
+#else
unsigned int max_level;
if (!boot_cpu_has(X86_FEATURE_IBS))
@@
-491,6
+494,7
@@
static u32 get_ibs_caps(void)
return IBS_CAPS_AVAIL;
return ibs_caps;
+#endif
}
u32 ibs_init(void)